package com.example.exam.req;

import lombok.Builder;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

public class LoginReq {

    @NotEmpty(message = "身份证号不能为空")
    @Max(18)
    @Pattern(regexp = "/^[1-9]\\d{5}(18|19|20|(3\\d))\\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$/"
            , message = "身份证号不规范")
    private String examineeIDCard;

    @NotEmpty(message = "密码不能为空")
    private String pwd;

    public String getExamineeIDCard() {
        return examineeIDCard;
    }

    public String getPwd() {
        return pwd;
    }
}
